/**
*@Author: QWP
*@Description: 我的日程相关接口
*@Date 2024-08-06 19:04
*/
import request from '@/http'

// 列表分页查询
export const page = async (data: object) => {
  return await request.post({
    url: '/api/bizz/admTSchedule/page',
    data: data
  })
}

// 日程查询
export const selectSchedule = async (data: object) => {
  return await request.post({
    url: '/api/bizz/admTSchedule/selectSchedule',
    data: data,
    headersType: 'application/x-www-form-urlencoded'
  })
}

// 新增
export const add = async (data: object) => {
  return await request.post({
    url: '/api/bizz/admTSchedule',
    data: data,
  })
}

// 更新
export const update = async (data: object) => {
  return await request.post({
    url: '/api/bizz/admTSchedule/update',
    data: data
  })
}

// 删除
export const del = async (data: object) => {
  return await request.post({
    url: '/api/bizz/admTSchedule/delete',
    data,
    headersType: 'application/x-www-form-urlencoded'
  })
}

// 单体查询
export const query1 = async (id: String) => {
  return await request.get({
    url: '/api/bizz/admTSchedule/' + id,
  })
}

// 单体查询
export const query = async (id: String) => {
  return await request.get({
    url: '/api/bizz/admTSchedule/details/' + id,
  })
}

// 导出
export const download = async (data: object) => {
  return await request.download1({
    url: '/api/bizz/admTSchedule/export',
    data
  })
}
